Nonlinear Predictive Motion Control for Autonomous Mobile Robots Considering Active Fault-Tolerant Control and Regenerative Braking

To further advance the performance and safety of autonomous mobile robots (AMRs), an integrated chassis control framework is proposed. In the longitudinal motion control module, a velocity-tracking controller was designed with the integrated feedforward and feedback control algorithm. Besides, the nonlinear model predictive control (NMPC) method was applied to the four-wheel steering (4WS) path-tracking controller design. To deal with the failure of key actuators, an active fault-tolerant control (AFTC) algorithm was designed by reallocating the driving or braking torques of the remaining normal actuators, and the weighted least squares (WLS) method was used for torque reallocation. The simulation results show that AMRs can advance driving stability and braking safety in the braking failure condition with the utilization of AFTC and recapture the braking energy during decelerations.


Introduction
Compared with the traditional automated guided vehicles (AGVs), autonomous mobile robots (AMRs) have higher flexibility and intelligence, representing a more sophisticated, flexible, and cost-effective technology, in favor of smart manufacturing, smart factory, and intelligent logistics [1]. AMRs are usually equipped with multiple actuators for steering, drive and brake. Therefore, AMR is an over-actuated system since each wheel can provide independent traction force [2]. It is a critical issue to realize the coordinated control between multiple actuators [3,4].
In recent years, different kinds of advance control methods have been applied to the motion control of robots, including optimal control [5], model predictive control (MPC) [6], Reinforcement Learning (RL)-based control approach [7], adaptive neural network [8], and neuroadaptive learning algorithms [9]. The chassis control of AMR usually consists of longitudinal motion control and lateral motion control [10]. Longitudinal motion control is associated with the drive and brake actuators, e.g., in-wheel motors (IWMs) and electromechanical brake (EMB) systems. In longitudinal motion control of AMRs, velocity-tracking control is in favor of the autonomous driving [11]. In [12], a parameter-varying controller was designed for velocity tracking, which showed high robustness. In [13], the MPC method was used for velocity-tracking controller design, which could recover the braking energy with brake torque allocation. In [14], an adaptive sliding mode control (ASMC) algorithm using Radial Basis Function (RBF) neural network was applied to the velocitytracking controller design, which could deal with external disturbances. Besides, Antilock Braking System (ABS), Acceleration Slip Regulation (ASR), and traction control have also been widely studied in longitudinal motion control for AMRs [15][16][17]. In the lateral motion control of AMRs, path-tracking is the main task for autonomous driving [18]. In [19], a linear quadratic regulator (LQR) technique was used for the four-wheel steering (4WS) path-tracking controller design. However, it showed poor robustness in dealing with uncertainties and disturbances. To reduce the effect of uncertainties in vehicle parameters, a robust path-tracking controller was designed with a µ-synthesis approach [20]. The MPC approach has been widely used in the path-tracking control of AMRs [21]. In [22], an adaptive path-tracking strategy was proposed based on MPC and fuzzy rules, which could guarantee vehicle stability under high-speed and large-curvature conditions. In [23], a Tube-based MPC method was applied to the path-tracking controller design, which showed strong robustness to address uncertainties and disturbances. In [24], an iterative learning control (ILC) method was used for the path-tracking control of AMR, which could improve the path-tracking performance significantly.
To deal with the failure of actuators, a fault-tolerant control has been widely studied [25][26][27]. In [28], a synthesis method was applied to the reconfigurable fault-tolerant control system, which could deal with the failure of steering actuators. With the driving force allocation control method, the vehicle can reconstruct the distribution control strategy on-line under fault conditions, realizing active fault tolerance [29]. In [30], the linear-quadratic control method and the control Lyapunov function technique were used to design the hybrid fault-tolerant control algorithm for the four-wheel-driving vehicle, which can address the actuator failure in the path-tracking process. In [31], a robust fault-tolerant control scheme was designed for distributed actuated electric vehicles, which integrated cooperative game and terminal sliding mode control (SMC) into the framework of the feedback linearization method (FLM). In [32], a fault tolerant sliding mode predictive control (SMPC) strategy was proposed to address the actuator failure, in which SMC was used to improve the robustness of the MPC in the presence of modeling uncertainties and disturbances. In [33], a novel quantized SMC strategy based on switching mechanism was proposed to compensate for actuator failure effects. In [34], the minimax MPC in the delta-domain was deployed to achieve the tracking performance under the actuator fault, system uncertainties, and disturbance.
Most studies only consider the failure of one actuator, which cannot cover all failure conditions. In this research, all kinds of failure conditions of IWMs were studied. Besides, few studies consider the regenerative braking and actuator failure in the motion control process of AMR at the same time. The contributions of this research are summarized as follow: (1) To deal with the system nonlinearity and external disturbances, an integrated feedforward and feedback control algorithm was designed for longitudinal motion control of AMR; (2) To realize the collaborative steering of 4WS, the nonlinear model predictive control (NMPC) method was applied to the path-tracking controller design; (3) To address the braking failure of actuators, an active fault-tolerant control (AFTC) algorithm was designed for AMR by redistributing the braking torques of the rest normal actuators.
The rest of this paper is organized as follows. Section 2 gives the problem description and control framework for AMR. The modelling work for control algorithm design is described in Section 3. Section 4 presents the control algorithm design for AMR. Then, the simulation tests are described in Section 5. Finally, Section 6 provide some conclusions and suggests future work.

Control Problem Description for AMR
To realize autonomous driving, the motion control for AMR mainly consists of longitudinal motion control and lateral motion control. Lateral motion control is reflected by the path-tracking issue. Longitudinal motion control is related to the drive and brake control, which is a critical issue in this study.
IWMs are the key components for AMR. On one hand, in-wheel motors can be used to drive the AMR. On the other hand, regenerative braking can be realized with in-wheel motors, recovering the braking energy. AMR is usually equipped with four in-wheel motors for independent drive, and four EMB systems for independent braking. Due to so many actuators, the reliability of the system is decreased. Therefore, safety is a critical issue for AMR. In the braking process, if braking failure of actuators occurs, this reduces safety. To maximize regenerative braking energy, IWMs have higher braking priority than EMBs. EMBs are usually used to compensate the rest braking force. Therefore, we mainly discuss the braking failure of IWMs in this paper. Figure 1 shows the braking failure conditions of IWMs divided into five types, i.e., failure of one IWM, failure of two IWMs on two sides, failure of two IWMs on the same side, failure of three IWMs, and failure of four IWMs. In this paper, the AFTC algorithm is proposed to deal with all kinds of braking failure of IWMs. motors, recovering the braking energy. AMR is usually equipped with four in-wheel motors for independent drive, and four EMB systems for independent braking. Due to so many actuators, the reliability of the system is decreased. Therefore, safety is a critical issue for AMR. In the braking process, if braking failure of actuators occurs, this reduces safety. To maximize regenerative braking energy, IWMs have higher braking priority than EMBs. EMBs are usually used to compensate the rest braking force. Therefore, we mainly discuss the braking failure of IWMs in this paper. Figure 1 shows the braking failure conditions of IWMs divided into five types, i.e., failure of one IWM, failure of two IWMs on two sides, failure of two IWMs on the same side, failure of three IWMs, and failure of four IWMs. In this paper, the AFTC algorithm is proposed to deal with all kinds of braking failure of IWMs.

Chassis Control Framework for AMR
The chassis control framework for AMR is illustrated in Figure 2, which mainly consists of longitudinal motion control and lateral motion control, i.e., the velocity-tracking control and the path-tracking control. In the path-tracking control module, NMPC is applied to the controller design. Based on the target path and the feedbacked vehicle state, the path-tracking controller outputs the front and rear wheel steering angels. In the velocity-tracking control module, an integrated feedforward and feedback controller is designed. To deal with the braking failure of IWMs, an AFTC module is designed after the velocity-tracking controller. With the torque redistribution of IWMs and EMBs, the AFTC algorithm is able to maximize the regenerative braking energy and guarantee safety at the same time.

Chassis Control Framework for AMR
The chassis control framework for AMR is illustrated in Figure 2, which mainly consists of longitudinal motion control and lateral motion control, i.e., the velocity-tracking control and the path-tracking control. In the path-tracking control module, NMPC is applied to the controller design. Based on the target path and the feedbacked vehicle state, the path-tracking controller outputs the front and rear wheel steering angels. In the velocity-tracking control module, an integrated feedforward and feedback controller is designed. To deal with the braking failure of IWMs, an AFTC module is designed after the velocity-tracking controller. With the torque redistribution of IWMs and EMBs, the AFTC algorithm is able to maximize the regenerative braking energy and guarantee safety at the same time.

Vehicle Dynamic Model
Some assumptions are made in this paper. First, only seven degrees of freedom are

Vehicle Dynamic Model
Some assumptions are made in this paper. First, only seven degrees of freedom are considered for the vehicle dynamic model, i.e., longitudinal motion, lateral motion, yaw motion of the vehicle and the four wheels' motion. Pitch motion, roll motion, and vertical motion of AMR are ignored. Drive anti-skid control is not considered in the longitudinal motion control strategy. This paper mainly focuses on the velocity-tracking control and braking control. Additionally, the longitudinal acceleration of the wheel center is considered equal to the longitudinal acceleration of the AMR at CG. The longitudinal dynamic model is derived as follows [35].
where v x and v y denote the longitudinal and lateral velocities, r denotes the yaw rate at the center of gravity (CG), F x denotes the total longitudinal tire force acting on the vehicle. F w and F f denote the wind resistance and the rolling resistance, respectively. m denotes the vehicle mass, δ i (i = fl, fr, rl, rr) denotes the steering angle of each wheel (fl denotes the front left wheel, fr denotes the front right wheel, rl denotes the rear left wheel, and rr denotes the rear right wheel). F xi (i = fl, fr, rl, rr) denotes the longitudinal force of each tire, C D , A and ρ denote the air resistance coefficient, windward area and air density, respectively., and f r and g denote the rolling resistance coefficient and the gravitational acceleration. The lateral dynamic model is expressed by [36] m . v y + v x r = F y (5) F y = F y f l cos δ f l + F y f r cos δ f r + F yrl cos δ rl + F yrr cos δ rr (6) where F y denotes the total lateral tire force acting on the vehicle. F yi (i = fl, fr, rl, rr) denotes the lateral force of each tire, which is expressed with the Dugoff tire model [37]. The yaw dynamic model is written according to [38] M z = (F y f l cos δ f l + F y f r cos δ f r )l f − (F yrl cos δ rl + F yrr cos δ rr )l r + ∆M z (8) where M z denotes the total yaw moment acting on the vehicle, I z denotes the yaw inertia moment, l f denotes the distance from the front axle to CG, and l r denotes the distance from the rear axle to CG. ∆M z is the external yaw moment, which is created by the torque difference between left and right wheels.
where B denotes the vehicle track.
Additionally, the dynamic model of each wheel is derived by where T i denotes the wheel torque, T i = T di − T bi , T di and T bi denote the drive and brake torques, respectively, ω i and R w denote the angular velocity of each wheel and the rolling radius of the tire, respectively, and I w denotes the wheel moment of inertia.

Path-Tracking Model
As Figure 3 shows, the 4-wheel vehicle model is usually simplified to be a single-track model to simplify the controller design [39]. The steering angle transformation relationship between the two models follows the Ackerman steering geometry [40].
where δ f and δ r denote the front and rear steering angles, and l denotes the distance from the front axle to the rear axle.

̇= −
where denotes the wheel torque, = − , and denote the drive and brake torques, respectively, and denote the angular velocity of each wheel and the rolling radius of the tire, respectively, and denotes the wheel moment of inertia.

Path-Tracking Model
As Figure 3 shows, the 4-wheel vehicle model is usually simplified to be a singletrack model to simplify the controller design [39]. The steering angle transformation relationship between the two models follows the Ackerman steering geometry [40].
, tan = tan , tan = tan where and denote the front and rear steering angles, and denotes the distance from the front axle to the rear axle.
where the state vector x = v y , r, ϕ, Y T , the output vector y = [ ϕ, Y] T , and the control

Velocity-Tracking Control Algorithm
For velocity-tracking controller design, (1) is rewritten as follows. where F c = mv y r. After Taylor expansion of (2) regarding cos δ i : where higher-order terms are placed in F d . Then, the simplified longitudinal dynamic model can be expressed as Based on the wheel dynamic model (10), it can be derived that Substitution of (19) into (18) yields The total torque of four wheels ∑ T i is defined as the longitudinal control vector, which is made up of the feedforward and feedback controllers, i.e., According to the model (20), the feedforward controller is derived as follows.
where v * x denotes the target velocity. The feedforward controller is mainly used to compensate the control error caused by the nonlinearity of the system. Substitution of (22) into (20) yields where e v x denotes the velocity tracking error, i.e., The feedback controller is designed by PID. Furthermore, defining the state vector F d ] T , then, (23) can be written in the state-space form.
To solve the feedback PID controller, the following performance index function is constructed: where Q l and R l are weighting matrix, Q l = 10 3 , R l = I 2×2 . Furthermore, the solution problem of the feedback PID controller can be transformed into the minimization of the performance index function, i.e., min J PID (K) (26) Finally, the linear-quadratic optimization approach is used to solve the feedback PID controller [41,42].

Path-Tracking Control Algorithm
For the path-tracking controller design, the path-tracking model (13) is expressed in the discreate state-space form as follows. where , u(k)), T denotes the sampling time, and T = 0.02s. Based on the discreate model (27), NMPC is applied to the path-tracking controller design. The prediction horizon and the control horizon are defined by N p and N c , N p ≥ N c . N p = 10, and N c = 5. Then, the predictive outputs are derived as follows.
Based on (28), this yields the output sequence as follows.
Besides, the reference output sequence is expressed bŷ the reference values of yaw angle and lateral position. Moreover, the control sequence is expressed as follows.
The proposed path tracking controller aims to minimize the tracking error y(k + 1) −ŷ(k + 1) 2 with the smallest control energy u(k + 1) 2 . Furthermore, the following cost function is constructed.

Active Fault-Tolerant Control Algorithm
In this section, we only discuss the braking failure of IWMs. If IWMs have failure in the driving process, the AFTC mechanism is triggered immediately. After that, the AMR starts braking to guarantee safety. Therefore, we do not discuss the driving failure of IWMs independently.
Since the total torque of four wheels ∑ T i has been worked out based on Section 4.1., it yields that where T IW Ms and T EMBs denote the total torques of four IWMs and four EMBs, respectively, i.e., Besides, the external yaw moment is generated by IWMs and EMBs, i.e., where ∆M IW Ms z and ∆M EMBs z denote the external yaw moment generated by IWMs and EMBs, respectively.
To guarantee yaw stability, ∆M z = 0. The following work aims to distribute the torque for each IWM and EMB based on (34) and (35). Figure 4 shows the AFTC flowchart to deal with all kinds of braking failure of IWMs.  For IWMs, the following torque distribution model is derived. To maximize the regenerative braking energy, IWMs has higher braking priority than EMBs. Therefore, the first step is to determine if F x ≤ F IW M xmax , F IW M xmax denotes the braking force boundaries of all normal IWMs, which is related to the failure number of IWM, i.e., i in Figure 4. can be derived from T IW M and T EMB based on (19). For IWMs, the following torque distribution model is derived. where Based on (36), the weighted least squares (WLS) method is used to distribute the torques of IWMs. The cost function for IWM torque distribution is constructed as follows.
where ρ IW M denotes the weighting coefficient, which is usually set very large to minimize the torque distribution error, ρ IW M = 10 6   Furthermore, (40) is rewritten as Furthermore, (40) is rewritten as Then, the WLS method for IWMs torque distribution is described as follows. For EMBs, the following torque distribution model is derived.
Based on (43), the cost function for EMBs torque distribution is derived as follows.
where ρ EMB denotes the weighting coefficient, which is usually set very large to minimize the torque distribution error, ρ EMB = 10 6 , Θ EMB Then, the WLS method for EMB torque distribution is derived as follows. , can be worked out.

Simulation Results and Analysis
Three simulation cases were designed and carried out via the co-simulation platform based on Carsim and Simulink as shown in Figure 6. Figure 6a shows the Simulink algorithm structure in the co-simulation platform, including the path-tracking control algorithm, longitudinal velocity-tracking control algorithm and the AFTC algorithm. All the control algorithms were carried out in the Simulink software. The real AMR model was built in Carsim software. With the co-simulation of Carsim and Simulink, the effectiveness and feasibility of the proposed algorithm were verified. Figure 6b shows the simulation scenario in Carsim.

Simulation Results and Analysis
Three simulation cases were designed and carried out via the co-simulation platform based on Carsim and Simulink as shown in Figure 6. Figure 6a shows the Simulink algorithm structure in the co-simulation platform, including the path-tracking control algorithm, longitudinal velocity-tracking control algorithm and the AFTC algorithm. All the control algorithms were carried out in the Simulink software. The real AMR model was built in Carsim software. With the co-simulation of Carsim and Simulink, the effectiveness and feasibility of the proposed algorithm were verified. Figure 6b shows the simulation scenario in Carsim.

Simulation Case 1
In this case, a straight-line braking condition was carried out. The AMR accelerated to 15 m/s and then started to brake after the 10th second. Three kinds of braking modes were compared in this case, i.e., regenerative braking (IWM), mechanical braking (EMB) and hybrid braking (IWM + EMB). The three kinds of braking modes were realized based on the same AMR with the parameters in Table 1 and the same simulation platform in Figure 6. The same velocity-tracking control algorithm and path-tracking control algorithm were utilized. In this case, braking failure was not considered.

Simulation Case 1
In this case, a straight-line braking condition was carried out. The AMR accelerated to 15 m/s and then started to brake after the 10th second. Three kinds of braking modes were compared in this case, i.e., regenerative braking (IWM), mechanical braking (EMB) and hybrid braking (IWM + EMB). The three kinds of braking modes were realized based on the same AMR with the parameters in Table 1 and the same simulation platform in Figure 6. The same velocity-tracking control algorithm and path-tracking control algorithm were utilized. In this case, braking failure was not considered. The path lengths of AMR with different kinds of braking modes are illustrated in Figure 7. It was found that regenerative braking had the longest braking distance. The second was mechanical braking, and the shortest was hybrid braking. A detailed analysis is shown in Table 1. The braking distances for the three kinds of braking modes were 42.74 m, 33.15 m, 27.33 m, respectively, and the braking times for the three kinds of braking modes were 4.04 s, 3.09 s, 2.32 s, respectively. Figure 8 shows the velocities of AMR with different kinds of braking modes. Hybrid braking showed the largest deceleration among the three kinds of braking modes. It can be concluded that hybrid braking can shorten the braking distance and braking time remarkably, improving braking safety.  The path lengths of AMR with different kinds of braking modes are illustrated in Figure 7. It was found that regenerative braking had the longest braking distance. The second was mechanical braking, and the shortest was hybrid braking. A detailed analysis is shown in Table 1. The braking distances for the three kinds of braking modes were 42.74 m, 33.15 m, 27.33 m, respectively, and the braking times for the three kinds of braking modes were 4.04 s, 3.09 s, 2.32 s, respectively. Figure 8 shows the velocities of AMR with different kinds of braking modes. Hybrid braking showed the largest deceleration among the three kinds of braking modes. It can be concluded that hybrid braking can shorten the braking distance and braking time remarkably, improving braking safety.  Regenerative braking powers with different kinds of braking modes are depicted in Figure 9. Mechanical braking cannot recover braking energy. Regenerative braking has larger regenerative braking power than hybrid braking. As shown in Table 2 regenerative braking energies for regenerative braking, mechanical braking, and hybrid braking were 6.10 × 10 4 J, 0 J, and 3.29 × 10 4 J, respectively. Due to the application of EMB in hybrid braking, the hybrid braking mode had smaller regenerative braking energy than the regenerative braking mode.  The path lengths of AMR with different kinds of braking modes are illustrated in Figure 7. It was found that regenerative braking had the longest braking distance. The second was mechanical braking, and the shortest was hybrid braking. A detailed analysis is shown in Table 1. The braking distances for the three kinds of braking modes were 42.74 m, 33.15 m, 27.33 m, respectively, and the braking times for the three kinds of braking modes were 4.04 s, 3.09 s, 2.32 s, respectively. Figure 8 shows the velocities of AMR with different kinds of braking modes. Hybrid braking showed the largest deceleration among the three kinds of braking modes. It can be concluded that hybrid braking can shorten the braking distance and braking time remarkably, improving braking safety.  Regenerative braking powers with different kinds of braking modes are depicted in Figure 9. Mechanical braking cannot recover braking energy. Regenerative braking has larger regenerative braking power than hybrid braking. As shown in Table 2 regenerative braking energies for regenerative braking, mechanical braking, and hybrid braking were 6.10 × 10 4 J, 0 J, and 3.29 × 10 4 J, respectively. Due to the application of EMB in hybrid braking, the hybrid braking mode had smaller regenerative braking energy than the regenerative braking mode.

Acceleration
Constant Speed Deceleration Regenerative braking powers with different kinds of braking modes are depicted in Figure 9. Mechanical braking cannot recover braking energy. Regenerative braking has larger regenerative braking power than hybrid braking. As shown in Table 2 regenerative braking energies for regenerative braking, mechanical braking, and hybrid braking were 6.10 × 10 4 J, 0 J, and 3.29 × 10 4 J, respectively. Due to the application of EMB in hybrid braking, the hybrid braking mode had smaller regenerative braking energy than the regenerative braking mode.  The wheel torques of AMR for three kinds of braking modes are displayed in Figures  10-12, respectively. In the regenerative braking mode, only IWMs worked, in charge of both drive and control. In the mechanical braking mode, IWMs were only used for drive, and EMBs were used for braking. Therefore, the torques of IWMs changed to zero after 10th second. In the hybrid braking mode, both IWMs and EMBs were used for braking. EMBs could compensate the rest braking force for IWMs, shortening the braking time and braking distance.  The wheel torques of AMR for three kinds of braking modes are displayed in Figures 10-12, respectively. In the regenerative braking mode, only IWMs worked, in charge of both drive and control. In the mechanical braking mode, IWMs were only used for drive, and EMBs were used for braking. Therefore, the torques of IWMs changed to zero after 10th second. In the hybrid braking mode, both IWMs and EMBs were used for braking. EMBs could compensate the rest braking force for IWMs, shortening the braking time and braking distance.   The wheel torques of AMR for three kinds of braking modes are displayed in Figures  10-12, respectively. In the regenerative braking mode, only IWMs worked, in charge of both drive and control. In the mechanical braking mode, IWMs were only used for drive, and EMBs were used for braking. Therefore, the torques of IWMs changed to zero after 10th second. In the hybrid braking mode, both IWMs and EMBs were used for braking. EMBs could compensate the rest braking force for IWMs, shortening the braking time and braking distance.    The wheel torques of AMR for three kinds of braking modes are displayed in Figures  10-12, respectively. In the regenerative braking mode, only IWMs worked, in charge of both drive and control. In the mechanical braking mode, IWMs were only used for drive, and EMBs were used for braking. Therefore, the torques of IWMs changed to zero after 10th second. In the hybrid braking mode, both IWMs and EMBs were used for braking. EMBs could compensate the rest braking force for IWMs, shortening the braking time and braking distance. From the above simulation results, it can be seen that the regenerative braking mode was beneficial to braking energy recovery. However, it led to longer braking distance, which reduces braking safety. The mechanical braking mode could shorten the braking distance but not recover the braking energy. In general, the hybrid braking mode had the advantages of the above two kinds of braking modes, i.e., maximizing the regenerative braking efficiency and advancing the braking safety.

Simulation Case 2
This case aimed to validate the AFTC algorithm for the AMR on a curved road; the hybrid braking mode was used. The AMR accelerated to 20 m/s and then started to brake after the 12th second. However, failure of the FL IWM occurred at the 10th second and failure of the RL IWM at the 12th second. Figure 13 shows the path-tracking results of AMR under three kinds of conditions, i.e., normal (no failure), failure (without AFTC), and AFTC. It can be seen from Figure 13b that without AFTC, the AMR departed from its target path after braking failure, showing a large lateral offset. With AFTC, the AMR could realize lane-keeping after the braking failure and brake safely until stopped, as in the normal condition. The steering angles of AMR are illustrated in Figure 14. After the braking failure of IWMs, the AMR showed From the above simulation results, it can be seen that the regenerative braking mode was beneficial to braking energy recovery. However, it led to longer braking distance, which reduces braking safety. The mechanical braking mode could shorten the braking distance but not recover the braking energy. In general, the hybrid braking mode had the advantages of the above two kinds of braking modes, i.e., maximizing the regenerative braking efficiency and advancing the braking safety.

Simulation Case 2
This case aimed to validate the AFTC algorithm for the AMR on a curved road; the hybrid braking mode was used. The AMR accelerated to 20 m/s and then started to brake after the 12th second. However, failure of the FL IWM occurred at the 10th second and failure of the RL IWM at the 12th second. Figure 13 shows the path-tracking results of AMR under three kinds of conditions, i.e., normal (no failure), failure (without AFTC), and AFTC. It can be seen from Figure 13b that without AFTC, the AMR departed from its target path after braking failure, showing a large lateral offset. With AFTC, the AMR could realize lane-keeping after the braking failure and brake safely until stopped, as in the normal condition. The steering angles of AMR are illustrated in Figure 14. After the braking failure of IWMs, the AMR showed From the above simulation results, it can be seen that the regenerative braking mode was beneficial to braking energy recovery. However, it led to longer braking distance, which reduces braking safety. The mechanical braking mode could shorten the braking distance but not recover the braking energy. In general, the hybrid braking mode had the advantages of the above two kinds of braking modes, i.e., maximizing the regenerative braking efficiency and advancing the braking safety.

Simulation Case 2
This case aimed to validate the AFTC algorithm for the AMR on a curved road; the hybrid braking mode was used. The AMR accelerated to 20 m/s and then started to brake after the 12th second. However, failure of the FL IWM occurred at the 10th second and failure of the RL IWM at the 12th second. Figure 13 shows the path-tracking results of AMR under three kinds of conditions, i.e., normal (no failure), failure (without AFTC), and AFTC. It can be seen from Figure 13b that without AFTC, the AMR departed from its target path after braking failure, showing a large lateral offset. With AFTC, the AMR could realize lane-keeping after the braking failure and brake safely until stopped, as in the normal condition. The steering angles of AMR are illustrated in Figure 14. After the braking failure of IWMs, the AMR showed very large steering angles to realize lane-keeping when without AFTC. However, with AFTC, the AMR could use torque redistribution to guarantee brake safety and lateral stability. The velocities of AMR under three kinds of conditions are depicted in Figure 15. Due to the loss of stability, the simulation was stopped at the 12.6 s when without AFTC. The AMR could not finish the braking process after the braking failure of the IWMs. With AFTC, the AMR could realize safe braking as in the normal condition. The velocities of AMR under three kinds of conditions are depicted in Figure 15 to the loss of stability, the simulation was stopped at the 12.6 s when without AFTC AMR could not finish the braking process after the braking failure of the IWMs. AFTC, the AMR could realize safe braking as in the normal condition. The velocities of AMR under three kinds of conditions are depicted in Figure 15. Due to the loss of stability, the simulation was stopped at the 12.6 s when without AFTC. The AMR could not finish the braking process after the braking failure of the IWMs. With AFTC, the AMR could realize safe braking as in the normal condition. The velocities of AMR under three kinds of conditions are depicted in Figure 15. Due to the loss of stability, the simulation was stopped at the 12.6 s when without AFTC. The AMR could not finish the braking process after the braking failure of the IWMs. With AFTC, the AMR could realize safe braking as in the normal condition. The regenerative braking results are shown in Figure 16 and Table 3. In spite of the braking failure, the AFTC algorithm could help the AMR recover the braking energy up to 3.43 × 10 4 J. Due to the braking failure of FL and RL IWMs, the recovered braking energy was smaller than in the normal condition. The regenerative braking results are shown in Figure 16 and Table 3. In spite of the braking failure, the AFTC algorithm could help the AMR recover the braking energy up to 3.43 × 10 4 J. Due to the braking failure of FL and RL IWMs, the recovered braking energy was smaller than in the normal condition.  The wheel torques of AMR with failure and with AFTC are illustrated in Figures 17  and 18, respectively. Due to the failure of FL and RL IWMs, the torques of the two IWMs changed to zero after the 10th second and the 12th second, respectively. Without AFTC, the AMR could not adjust its torque distribution to guarantee lateral stability. However, with AFTC, the EMBs redistributed the brake torque to compensate the braking force and overcome the external yaw moment caused by the braking failure of IWMs (Figure 18a   The wheel torques of AMR with failure and with AFTC are illustrated in Figures 17 and 18, respectively. Due to the failure of FL and RL IWMs, the torques of the two IWMs changed to zero after the 10th second and the 12th second, respectively. Without AFTC, the AMR could not adjust its torque distribution to guarantee lateral stability. However, with AFTC, the EMBs redistributed the brake torque to compensate the braking force and overcome the external yaw moment caused by the braking failure of IWMs (Figure 18a,b). The regenerative braking results are shown in Figure 16 and Table 3. In spite of the braking failure, the AFTC algorithm could help the AMR recover the braking energy up to 3.43 × 10 4 J. Due to the braking failure of FL and RL IWMs, the recovered braking energy was smaller than in the normal condition.  The wheel torques of AMR with failure and with AFTC are illustrated in Figures 17  and 18, respectively. Due to the failure of FL and RL IWMs, the torques of the two IWMs changed to zero after the 10th second and the 12th second, respectively. Without AFTC, the AMR could not adjust its torque distribution to guarantee lateral stability. However, with AFTC, the EMBs redistributed the brake torque to compensate the braking force and overcome the external yaw moment caused by the braking failure of IWMs (Figure 18a

Simulation Case 3
In this case, the braking failure condition of three IWMs was studied, further validating the effectiveness of the AFTC algorithm. The AMR accelerated to 20 m/s and then started to brake after the 12th second. However, the FL IWM had a failure at the 10th second, and the RL and RR IWMs had a braking failure at the 12th second.
The path-tracking results of the AMR in this case are illustrated in Figure 19. This was similar to Case 2 in that without AFTC, the AMR departed from its original trajectory and lost stability after the braking failure of the IWMs. Moreover, the lateral offset was larger than that in Case 2. In spite of the increased failure numbers of IWMs, AFTC can help the AMR realize lane-keeping and safe braking. Figure 20 shows the steering angels of the AMR. It was found that the AMR had very large steering angles after the braking failure of IWMs, reaching the control boundaries. Despite this, the AMR could not guarantee stability and braking safety.

Simulation Case 3
In this case, the braking failure condition of three IWMs was studied, further validating the effectiveness of the AFTC algorithm. The AMR accelerated to 20 m/s and then started to brake after the 12th second. However, the FL IWM had a failure at the 10th second, and the RL and RR IWMs had a braking failure at the 12th second.
The path-tracking results of the AMR in this case are illustrated in Figure 19. This was similar to Case 2 in that without AFTC, the AMR departed from its original trajectory and lost stability after the braking failure of the IWMs. Moreover, the lateral offset was larger than that in Case 2. In spite of the increased failure numbers of IWMs, AFTC can help the AMR realize lane-keeping and safe braking. Figure 20 shows the steering angels of the AMR. It was found that the AMR had very large steering angles after the braking failure of IWMs, reaching the control boundaries. Despite this, the AMR could not guarantee stability and braking safety.

Simulation Case 3
In this case, the braking failure condition of three IWMs was studied, further v ing the effectiveness of the AFTC algorithm. The AMR accelerated to 20 m/s an started to brake after the 12th second. However, the FL IWM had a failure at th second, and the RL and RR IWMs had a braking failure at the 12th second.
The path-tracking results of the AMR in this case are illustrated in Figure 1 was similar to Case 2 in that without AFTC, the AMR departed from its original tra and lost stability after the braking failure of the IWMs. Moreover, the lateral offs larger than that in Case 2. In spite of the increased failure numbers of IWMs, AF help the AMR realize lane-keeping and safe braking. Figure 20 shows the steering of the AMR. It was found that the AMR had very large steering angles after the b failure of IWMs, reaching the control boundaries. Despite this, the AMR could no antee stability and braking safety.  Figure 21 shows the velocities of AMR under different conditions. Under the condition, the simulation was stopped at the 14.1 s due to the loss of stability of th However, the AFTC algorithm could help AMR address the braking failure of IW finish the braking process safely. The regenerative braking results of AMR are shown in Figure 22 and Table 4. of the braking failure of three IWMs, the AFTC algorithm could help AMR recove ing energy up to −1.72 × 10 4 J using the normal IWM.   Figure 21 shows the velocities of AMR under different conditions. Under the fa condition, the simulation was stopped at the 14.1 s due to the loss of stability of the A However, the AFTC algorithm could help AMR address the braking failure of IWMs finish the braking process safely. The regenerative braking results of AMR are shown in Figure 22 and Table 4. In of the braking failure of three IWMs, the AFTC algorithm could help AMR recover ing energy up to −1.72 × 10 4 J using the normal IWM.   Figure 21 shows the velocities of AMR under different conditions. Under the failure condition, the simulation was stopped at the 14.1 s due to the loss of stability of the AMR. However, the AFTC algorithm could help AMR address the braking failure of IWMs and finish the braking process safely.  Figure 21 shows the velocities of AMR under different conditions. Under the failure condition, the simulation was stopped at the 14.1 s due to the loss of stability of the AMR. However, the AFTC algorithm could help AMR address the braking failure of IWMs and finish the braking process safely. The regenerative braking results of AMR are shown in Figure 22 and Table 4. In spite of the braking failure of three IWMs, the AFTC algorithm could help AMR recover braking energy up to −1.72 × 10 4 J using the normal IWM.

Normal
Failure AFTC Regenerative energy (J) 6.84 × 10 4 1.14 × 10 4 1.72 × 10 4 The regenerative braking results of AMR are shown in Figure 22 and Table 4. In spite of the braking failure of three IWMs, the AFTC algorithm could help AMR recover braking energy up to −1.72 × 10 4 J using the normal IWM. The wheel torques of AMR under the failure condition and the AFTC condition are displayed in Figures 23 and 24, respectively. After the braking failure of three IWMs, the original torque distribution algorithm could not guarantee stability and braking safety. However, AFTC could help redistribute the torque of the normal IWM and four EMBs, recovering braking energy and guaranteeing braking safety and stability.  The wheel torques of AMR under the failure condition and the AFTC condition are displayed in Figures 23 and 24, respectively. After the braking failure of three IWMs, the original torque distribution algorithm could not guarantee stability and braking safety. However, AFTC could help redistribute the torque of the normal IWM and four EMBs, recovering braking energy and guaranteeing braking safety and stability. The wheel torques of AMR under the failure condition and the AFTC condition are displayed in Figures 23 and 24, respectively. After the braking failure of three IWMs, the original torque distribution algorithm could not guarantee stability and braking safety. However, AFTC could help redistribute the torque of the normal IWM and four EMBs, recovering braking energy and guaranteeing braking safety and stability. The wheel torques of AMR under the failure condition and the AFTC condition are displayed in Figures 23 and 24, respectively. After the braking failure of three IWMs, the original torque distribution algorithm could not guarantee stability and braking safety. However, AFTC could help redistribute the torque of the normal IWM and four EMBs, recovering braking energy and guaranteeing braking safety and stability.

Conclusions
A chassis control framework was designed for an AMR. To address the braking failure of IWMs, an AFTC algorithm was studied by redistributing the braking torques of normal IWMs and four EMBs. Torque redistribution was carried out based on the WLS method. Three simulation cases were conducted to evaluate the feasibility and effectiveness of the proposed control algorithms. The simulation results indicate that the hybrid braking mode can help AMR recover the braking energy and advance braking safety. Moreover, the AFTC algorithm can deal with the braking failure of IWMs and realize braking energy recovery at the same time.
The hybrid conditions of IWM braking failure and EMB braking failure will be studied in future work.